<?php

$baseUrl = "http://ditu.google.com/maps/ms?";
$url= $baseUrl.$_SERVER["QUERY_STRING"];
//'http://ditu.google.com/maps/ms?ie=UTF8&hl=zh-CN&brcurrent=3,0x31508e64e5c642c1:0x951daa7c349f366f,0%3B5,0,0&msa=0&msid=212800177725253189507.0004a07859593181e6f23&ll=38.08269,98.481445&spn=13.995455,33.815918&z=6&output=kml';//指定URL地址
$url2='http://www.google.com.hk';

LinkURL($url);//调用LinkURL函数获得数据 

function LinkURL($url)
{ 
    $fp = file_get_contents($url);
    echo  $fp; 
}

function xml_out($content) {
    global $_SC;
    @header("Expires: -1");
    @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
    @header("Pragma: no-cache");
    @header("Content-type: application/xml; charset=$_SC[charset]");
	echo $content;	
}
?>